/**
 * index
 */
define(function(require) {
    var $ = require('jquery');
    var com = require('./common');

    com.layoutSet();

    var innerPart_height = $('.inner_dPart_row').outerHeight();
    $('.inner_dPart').each(function(){
    	$(this).height(innerPart_height);
    	$(this).find('.comBox').height(innerPart_height);

    	//$(this).find('.my_echarts_new').height(innerPart_height - $(this).find('.hd').outerHeight() - 10 -30)
    })

    axios.get(com.api.analysis).then(function(response){
        com.chart8("chart1",response.data.name,response.data.num,['#1864ff', '#0aabff', '#f4b233', '#35bb8e', '#ff6333']);
    });
    axios.get(com.api.anialysis_detail).then(function(response){
        com.chart5("chart2",response.data.ldl.data,response.data.ldl.name);
    });

    axios.get(com.api.anialysis_detail).then(function(response){
        com.chart5("chart3",response.data.jyl.data,response.data.jyl.name);
    });

    axios.get(com.api.anialysis_detail).then(function(response){
        com.chart5("chart4",response.data.sixty.data,response.data.sixty.name);
    });

    axios.get(com.api.anialysis_detail).then(function(response){
        com.chart5("chart5",response.data.lnfy.data,response.data.lnfy.name);
    });


    com.loading_finished();

});